package com.zcl.util;

import com.zcl.mapper.WorkerMapper;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import com.zcl.entity.worker;

import java.util.List;

public class test {
    @Test
    public void test01(){
        try(SqlSession session= myBatisUtil.getSS(true)) {
            WorkerMapper mapper = session.getMapper(WorkerMapper.class);
            List<worker> workers = mapper.findALL();
            workers.forEach(System.out::println);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
